package Day5;

public class myShape {
}

abstract class gainArea{
    public abstract double calculateArea();
}

class circle extends gainArea{
    public int radius;

    @Override
    public double calculateArea () {
        return radius * radius * 3.14;
    }

}

class Rectangle extends gainArea{
    public int width;
    public int height;

    @Override
    public double calculateArea () {
        return width * height;
    }
}
